<?
	$country_id += 0;
	$country = new Country();
	$country->select($country_id);
	
	if ($country)
	{
		$locations = $country->getAllLocations();
		if (sizeof($locations) > 0)
		{
		?>
            <select name='<?=$name?>' id='<?=$name?>'>
            <?
                foreach ($locations as $location)
                {
                ?>
                    <option value='<?=$location->getid()?>'><?=$location->getname()?></option>
                <?
                }
            ?>
            </select>
		<?
		}
	}
?>